package com.txl.constants;

/**
 * 通用常量信息
 *
 * @author ghc
 */
public class Constants {

    public String notStatic = "is_not_static";
    /**
     * UTF-8 字符集
     */
    public static String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static String GBK = "GBK";

    /**
     * http请求
     */
    public static String HTTP = "http://";

    /**
     * https请求
     */
    public static String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static String FAIL = "1";

    /**
     * 登录成功
     */
    public static String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 登录用户 redis key
     */
    public static String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 登录用户类型 redis key
     */
    public static String LOGIN_TYPE_TOKEN_KEY = "login_type_tokens:";

    /**
     * 防重提交 redis key
     */
    public static String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 验证码有效期（分钟）
     */
    public static Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static String TOKEN_PREFIX = "Bearer ";


    /**
     * 普通用户 令牌前缀
     */
    public static String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static String JWT_USERID = "userid";

    /**
     * 用户名称
     */
    public static String JWT_USERNAME = "sub";

    /**
     * 用户头像
     */
    public static String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static String JWT_AUTHORITIES = "authorities";

    /**
     * 参数管理 cache key
     */
    public static String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static String RESOURCE_PREFIX = "/profile";

    /**
     * 所有人才管理字典cache key 表hr_dict
     */
    public static String HR_DICT_KEY_ALL = "hr_dict:ALL";

    /**
     * 人才管理字典cache key 表hr_dict 4 福利待遇
     */
    public static String HR_DICT_KEY_BENEFITS = "hr_dict:BENEFITS";

    /**
     * 人才管理字典cache key 表hr_dict 3 地区分类
     */
    public static String HR_DICT_KEY_CITY = "hr_dict:CITY";

    /**
     * 人才管理字典cache key 表hr_dict 2 行业分类
     */
    public static String HR_DICT_KEY_INDUSTRY = "hr_dict:INDUSTRY";

    /**
     * 人才管理字典cache key 表hr_dict 1 职位分类
     */
    public static String HR_DICT_KEY_JOB = "hr_dict:JOB";

    /**
     * 所有人才管理字典cache key 表 hr_dict_type 全部
     */
    public static String HR_DICT_TYPE_KEY_ALL = "hr_dict_type:ALL";

    /**
     * 所有人才管理字典cache key 表 hr_dict_type 全部
     */
    public static String HR_DICT_TYPE_KEY = "HR_DICT_TYPE_KEY:";

    /**
     * 字典表所有的值
     */
    public static String HR_TYPE_DICT_ALL_KEY = "HR_TYPE_DICT_ALL_KEY";

    /**
     * 所有人才管理字典cache key 表  hr_dict_type 薪资要求
     */
    public static String HR_DICT_TYPE_KEY_SALARY = "hr_dict_type:SALARY";

    /**
     * 系统登录类型
     */
    public static String LOGIN_TYPE_SYS = "sys";
    /**
     * 企业登录类型
     */
    public static String LOGIN_TYPE_COMPANY = "company";
    /**
     * 普通用户登录类型
     */
    public static String LOGIN_TYPE_USER = "user";

    /**
     * 角色对应权限 redis key
     */
    public static String REDIS_ROLE_KEY = "REDIS_ROLE_KEY:";

    /**
     * 角色对应菜单 redis key
     */
    public static String REDIS_ROLE_MENU_KEY = "REDIS_ROLE_MENU_KEY:";

    /**
     * 手机验证码 redis key
     */
    public static String MOBILE_CODE_KEY = "MOBILE_CODE_KEY:";

    /**
     * 邮箱验证码 redis key
     */
    public static String EMAIL_CODE_KEY = "EMAIL_CODE_KEY:";

    /**
     * 微信 access_token 缓存 redis key
     */
    public static String WX_ACCESS_TOKEN_KEY = "WX_ACCESS_TOKEN_KEY";


    /**
     * 大屏职位数据缓存 redis key
     */
    public static String SCREENS_DYNAMIC_JOB_OFFERS_KEY = "SCREENS_DYNAMIC_JOB_OFFERS_KEY";

    /**
     * 现场招聘会企业职位 redis key
     */
    public static String WeChatRecruitmentHallPostDTO_KEY = "WeChatRecruitmentHallPostDTO_KEY:";

    /**
     * 展会数据统计
     */
    public static String RecruitmentStatistics_key = "RecruitmentStatistics_key:";

    /**
     * 展会岗位数据统计
     */
    public static String RecruitmentJobCount_key = "RecruitmentJobCount_key:";

    /**
     * 展会学历数据统计
     */
    public static String RecruitmentEduCount_key = "RecruitmentEduCount_key:";

    /**
     * 企业下载简历缓存 统计
     */
    public static String COMPANY_DOWNLOAD_RESUME_KEY = "COMPANY_DOWNLOAD_RESUME_KEY:";

    /**
     * 终端 微信
     */
    public static String TERMINAL_WECHAT = "wechat";

    /**
     * 终端 pad 平板电脑
     */
    public static String TERMINAL_PAD = "pad";

    /**
     * 终端 小程序
     */
    public static String TERMINAL_APPLET = "applet";
    /**
     * 人才推荐 缓存
     */
    public static String PERSON_RECOMMEND = "personRecommend_index";

    /**
     * 人才推荐数量 缓存
     */
    public static String PERSON_RECOMMEND_SUM = "PERSON_RECOMMEND_SUM";
}
